﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Recepcjonista/Recepcjonista.Master" AutoEventWireup="true" CodeBehind="Rejestracja.aspx.cs" Inherits="Hotel_Management.Recepcjonista.Rejestracja" %>

<asp:Content ID="Content3" ContentPlaceHolderID="MainContent2" runat="server">
    <p>
        
        <asp:Label ID="Label6" runat="server" Font-Bold="True" Font-Size="Larger" Text="Lista Klientów:"></asp:Label>
        
    <p>
        <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
            AllowSorting="True" AutoGenerateColumns="False" 
            BackColor="LightGoldenrodYellow" BorderColor="Tan" BorderWidth="1px" 
            CellPadding="2" DataKeyNames="id_kl" DataSourceID="LinqDataSource1" 
            ForeColor="Black" GridLines="None" HorizontalAlign="Center" Width="80%">
            <AlternatingRowStyle BackColor="PaleGoldenrod" />
            <Columns>
                <asp:CommandField ShowDeleteButton="True" ShowEditButton="True" />
                <asp:BoundField DataField="id_kl" HeaderText="id_kl" InsertVisible="False" 
                    ReadOnly="True" SortExpression="id_kl" />
                <asp:BoundField DataField="id_rez" HeaderText="id_rez" 
                    SortExpression="id_rez" />
                <asp:BoundField DataField="imie" HeaderText="imie" SortExpression="imie" />
                <asp:BoundField DataField="nazwisko" HeaderText="nazwisko" 
                    SortExpression="nazwisko" />
                <asp:BoundField DataField="PESEL" HeaderText="PESEL" SortExpression="PESEL" />
            </Columns>
            <FooterStyle BackColor="Tan" />
            <HeaderStyle BackColor="Tan" Font-Bold="True" />
            <PagerStyle BackColor="PaleGoldenrod" ForeColor="DarkSlateBlue" 
                HorizontalAlign="Center" />
            <RowStyle HorizontalAlign="Center" />
            <SelectedRowStyle BackColor="DarkSlateBlue" ForeColor="GhostWhite" />
            <SortedAscendingCellStyle BackColor="#FAFAE7" />
            <SortedAscendingHeaderStyle BackColor="#DAC09E" />
            <SortedDescendingCellStyle BackColor="#E1DB9C" />
            <SortedDescendingHeaderStyle BackColor="#C2A47B" />
        </asp:GridView>
        <asp:LinqDataSource ID="LinqDataSource1" runat="server" 
            ContextTypeName="Hotel2.App_Data.BazaDanych" EnableDelete="True" 
            EnableInsert="True" EnableUpdate="True" EntityTypeName="" TableName="Kliencis">
        </asp:LinqDataSource>
    </p>
    <p>
    </p>
    <asp:Panel ID="Panel1" runat="server" Height="468px">
        <asp:Label ID="Label1" runat="server" Text="ID Klienta" CssClass="label"></asp:Label>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
        <asp:Label ID="Label2" runat="server" CssClass="label" Text="ID Rezerwacji"></asp:Label>
        <br />
        <asp:TextBox ID="IdKlienta" runat="server" CssClass="textBox"></asp:TextBox>
        <asp:Label ID="error1" runat="server" Font-Bold="True" Font-Overline="False" Font-Size="Larger" ForeColor="#CC0000" Text="!!!!!" Visible="False"></asp:Label>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:TextBox ID="IdRezerwacji" runat="server" CssClass="textBox" TabIndex="1"></asp:TextBox>
        <asp:Label ID="error2" runat="server" Font-Bold="True" Font-Overline="False" Font-Size="Larger" ForeColor="#CC0000" Text="!!!!!" Visible="False"></asp:Label>
        <br />
        <br />
        <asp:Label ID="Label3" runat="server" CssClass="label" Text="Imie"></asp:Label>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Label ID="Label4" runat="server" CssClass="label" Text="Nazwisko"></asp:Label>
        <br />
        <asp:TextBox ID="Imie" runat="server" CssClass="textBox" TabIndex="2"></asp:TextBox>
        <asp:Label ID="error3" runat="server" Font-Bold="True" Font-Overline="False" Font-Size="Larger" ForeColor="#CC0000" Text="!!!!!" Visible="False"></asp:Label>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:TextBox ID="Nazwisko" runat="server" CssClass="textBox" TabIndex="3"></asp:TextBox>
        <asp:Label ID="error4" runat="server" Font-Bold="True" Font-Overline="False" Font-Size="Larger" ForeColor="#CC0000" Text="!!!!!" Visible="False"></asp:Label>
        <br />
        <br />
        <asp:Label ID="Label5" runat="server" CssClass="label" Text="PESEL"></asp:Label>
        <br />
        <asp:TextBox ID="Pesel" runat="server" CssClass="textBox" TabIndex="4"></asp:TextBox>
        &nbsp;<asp:Label ID="error5" runat="server" Font-Bold="True" Font-Overline="False" Font-Size="Larger" ForeColor="#CC0000" Text="!!!!!" Visible="False"></asp:Label>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Button ID="SubmitButton" runat="server" CssClass="submitButton" OnClick="SubmitButtonClick" Text="Submit" Width="128px" />
        <br />
    </asp:Panel>
</asp:Content>

